import java.util.Scanner;

public class Test {
    public static void main(String[] args) {//字符串相加(二进制数字)
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String a = in.next();
            String b = in.next();

            String ret = add(a, b);
            System.out.println(ret);
        }
    }

    private static String add(String a, String b) {
        StringBuilder stringBuilder = new StringBuilder();

        int lenA = a.length();
        int lenB = b.length();
        int maxLen = Math.max(lenA, lenB);

        StringBuilder stringBuilderA = new StringBuilder(a).reverse();
        StringBuilder stringBuilderB = new StringBuilder(b).reverse();

        boolean isCarry = false;

        for (int i = 0; i < maxLen; i++) {
            char cha = i >= lenA ? '0' : stringBuilderA.charAt(i);
            char chb = i >= lenB ? '0' : stringBuilderB.charAt(i);

            if (cha == '1' && chb == '1') {
                stringBuilder.append(isCarry ? '1' : '0');
                isCarry = true;
            } else if (cha == '0' && chb == '0') {
                stringBuilder.append(isCarry ? '1' : '0');
                isCarry = false;
            } else {
                stringBuilder.append(isCarry ? '0' : '1');
            }
        }

        if (isCarry) {
            stringBuilder.append('1');
        }

        return stringBuilder.reverse().toString();
    }





    public static void main2(String[] args) {//删除公共字符
        Scanner in = new Scanner(System.in);

        while (in.hasNextLine()) {
            String str1 = in.nextLine();
            String str2 = in.nextLine();

            String ret = func(str1, str2);
            System.out.println(ret);
        }
    }

    public static String func(String str1, String str2) {
        StringBuilder stringBuilder = new StringBuilder();

        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);

//            if (!str2.contains(ch + "")) {
//                stringBuilder.append(ch);
//            }

            if (str2.indexOf(ch) == -1) {
                stringBuilder.append(ch);
            }
        }

        return stringBuilder.toString();
    }







    public static void main1(String[] args) {//实现字母大小写的转换
        Scanner in = new Scanner(System.in);//输入

        while (in.hasNextLine()) {
            String str = in.nextLine();
            char ch = str.charAt(0);

            if (Character.isLowerCase(ch)) {
                char ch1 = (char)(ch - 32);
                System.out.println(ch1);
            } else {
                char ch2 = (char)(ch + 32);
                System.out.println(ch2);
            }
        }
    }
}
